﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Internet_Cafe.App_Code.DatabaseModel;

namespace Internet_Cafe.App_Code
{
    public abstract class AppHelper
    {
        public static UserViewModel LoggedUser;

        public static double CostPerHour = 40.0;

        public static double GetCost(int totalMinutes)
        {
            return (totalMinutes / 60.0) * AppHelper.CostPerHour;
        }

        public static double GetTimeFromCost(double cost)
        {
            return (cost * 60.0) / CostPerHour;
        }
    }
}
